package com.project.forlearningdemo.dao;

import com.project.forlearningdemo.pojo.ReportResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 举报表的接口
 */
@Repository
@Mapper
public interface ReportResourceMapper {

    //添加举报对象
    boolean addReportResource(@Param("resourceId") Integer resourceId, @Param("userId") Integer userId, @Param("reason") String reason, @Param("reportDetails") String reportDetails);
    //查询举报
    ReportResource queryReportResource(@Param("userId") int userId,@Param("resourceId") int resourceId);
}
